package com.sea.human.service;


import com.codecrane.core.power.entity.PowerGroup;
import com.codecrane.core.power.entity.PowerUser;
import com.sea.human.entity.Performance;
import com.sea.operate.entity.Related;
import org.apache.ibatis.annotations.Param;

import java.io.InputStream;
import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface PerformanceService {
    /**
     * 查询各个状态下的
     * @param performance
     * @return
     */
    List<Performance> findStatusNumber(Performance performance);
    /**
     * 条件查询
     * @param performance
     * @return
     */
    List<Performance> findByCnd(Performance performance);
    /**
     * 新增绩效
     * @param powerUser
     * @param powerGroup
     * @param performanceDate
     * @return
     */
    int save(PowerUser powerUser, PowerGroup powerGroup,String performanceDate);
    /**
     * 更新绩效
     * @param performance
     * @return
     */
    int usave(Performance performance);
    /**
     * 查询需要打分的记录
     * @param performance
     * @return
     */
    List<Performance> findGradeByUser(Performance performance);
    /**
     * 更新评分
     * @param id
     * @return
     */
    int updateScore(Integer id);
    /**
     * 查询指定
     * @param id
     * @return
     */
    Performance findById(Integer id);
    /**
     * 根据日期状态返回该数量
     * @param performanceStatus
     * @param performanceDate
     * @return
     */
    Integer findNumberByDateStatus(Integer performanceStatus,String performanceDate);
    /**
     * 返回当月未提交数量
     * @param performanceDate
     * @return
     */
    Integer findPerformanceNumber(String performanceDate);
}
